﻿namespace EyeOpen.Editing.Windows
{
	using System.Collections.Generic;
	using System.Windows.Forms;

	public partial class MainForm : Form
	{
		public MainForm()
		{
			InitializeComponent();

			DependencyResolver.Register(new CustomerRepository());
			DependencyResolver.Register<IValidator<Customer>>(new CustomerValidator());

			var data =
				new List<Customer>
					{
						new Customer { Name = "Bill", Age = 30 },
						new Customer { Name = "Steve", Age = 40 }
					};

			customerDataGridView.DataSource = data;
		}
	}
}